package org.threebitsoftware.tbb.module.fileio;

import org.threebitsoftware.tbb.dao.Contact;
import org.threebitsoftware.tbb.module.ExternalModuleInterface;

public interface FileOutputInterface extends ExternalModuleInterface{

	/**
	 * Declares if this class can use the exportContactToFile(String, Contacts[])
	 * method.
	 * @return True if this class can use the method; false otherwise.
	 */
	public boolean canExportMultipleContacts();
	
	/**
	 * Exports a contact to a file.
	 * @param myStrFilePath The file path to export to.
	 * @param myContact The contact to export. 
	 * @return True if it works, false otherwise.
	 * @throws Exception if an error occurs.
	 */
	public boolean exportContactToFile(String myStrFilePath, Contact myContact) throws Exception;
	
	/**
	 * Exports a groups of contacts to a file.
	 * @param myStrFilePath The file path to export to.
	 * @param myContacts The contact list to export.
	 * @return True if it works; false if it does not.
	 * @throws Exception if an error occurs.
	 */
	public boolean exportContactToFile(String myStrFilePath, Contact myContacts[]) throws Exception;
	
	
}
